package net.admin.action;

import java.io.PrintWriter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class PopupAction implements Action{
	
	@Override
	public ActionForward execute(HttpServletRequest request, HttpServletResponse response) throws Exception{
		
		request.setCharacterEncoding("euc-kr");
		
		ActionForward forward = new ActionForward();
		
		PrintWriter out = response.getWriter();
		out.println("<script language=\"JavaScript\">   ");
		out.println("var turl = 'http://www.daum.net' ");
		out.println("var prop = \'width=1015,height=725,left=0, top=0,resizable=yes,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,border=0\'; ");
		out.println("var popWin = window.open(turl,'popExport',prop); ");
		out.println("</script>                              ");
		out.flush();
		
		forward.setRedirect(false);
		forward.setPath("popup_test.jsp");
		
		return forward;
		
	}

}
